package com.kun.dao;

import com.kun.entity.PushProcess;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author fangkun
 * @create 2023-02-16-15:30
 */
@Mapper
public interface PushProcessMapper {

    Integer countPushRecordsByState(@Param("pushState") int i);

    void updateAllState(int i);

    List<PushProcess> findPushRecordsByStateLimit(@Param("pushState") int i, @Param("start") int start, @Param("limit") int limit);

    void updateFlagById(@Param("id") Long id, @Param("pushFlag") int i);
}
